#!/bin/sh
#
# GiveDevices:  give the current virtual and logging consoles over
#               to the user.  Any other device which should be given
#               the user of display :0 should be added herein.
#               Called by Xstartup.
#
# Copyright (c) 2000 SuSE GmbH Nuernberg, Germany.
# please send bugfixes or comments to feedback@suse.de.
#
# Author: Werner Fink,   <werner@suse.de>
#

if test -c /dev/tty0 ; then
    chown ${USER}:tty /dev/tty0
    chmod 622         /dev/tty0
fi
if test -p /dev/xconsole ; then
    chown ${USER}:tty /dev/xconsole
    chmod 400         /dev/xconsole
fi
